package com.wfx.controller;


import com.wfx.entity.PageDTO;
import com.wfx.entity.PageResult;
import com.wfx.entity.ViewOrderCunt;
import com.wfx.service.IViewOrderCuntService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-27
 */
@RestController
@RequestMapping("/view-order-cunt")
@CrossOrigin
public class ViewOrderCuntController {
    @Autowired
    private IViewOrderCuntService iViewOrderCuntService;
    //分页+条件查看订单列表
    @PostMapping("/search")
    public PageResult<ViewOrderCunt> search(@RequestBody PageDTO<ViewOrderCunt> pageDTO){
        return iViewOrderCuntService.search(pageDTO);
    }
    //

}
